#!/bin/bash

sid1=`ps -ef | grep java | grep msdemo-service |xargs | cut -d" " -f2`
echo $sid1
if [[ "xxx$sid1" = "xxx" ]];
then
   echo "no live instance exist"
else
   echo  kill -9 $sid1
   kill -9 $sid1
fi
